home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / prolog / ai.prl / opnprlg1.hqx / Open Prolog / Open Prolog.rsrc / CODE_14_myTextEdit.txt < prev    next >
Text File  |  1993-04-15  |  48KB  |  850 lines

  1. # near model CODE resource
  2. # entry label at 0x0000
  3. export_350:
  4. entry:
  5. fn00000000:
  6. 00000000  4E56 0000                link       A6, 0
  7. 00000004  48E7 1020                movem.l    -[A7], D3,A2
  8. 00000008  226E 0008                movea.l    A1, [A6 + 0x8]
  9. 0000000C  2051                     movea.l    A0, [A1]
  10. 0000000E  7000                     moveq.l    D0, 0x00
  11. 00000010  3028 0020                move.w     D0, [A0 + 0x20]
  12. 00000014  B0AE 0010                cmp.l      D0, [A6 + 0x10]
  13. 00000018  660A                     bne        +0xC /* 00000024 */
  14. 0000001A  3028 0022                move.w     D0, [A0 + 0x22]
  15. 0000001E  B0AE 000C                cmp.l      D0, [A6 + 0xC]
  16. 00000022  673E                     beq        +0x40 /* 00000062 */
  17. label00000024:
  18. 00000024  2268 0052                movea.l    A1, [A0 + 0x52]
  19. 00000028  08E9 0000 03A2           bset.b     [A1 + 0x3A2], 0x0
  20. 0000002E  6614                     bne        +0x16 /* 00000044 */
  21. 00000030  0829 0000 03A3           btst.b     [A1 + 0x3A3], 0x0
  22. 00000036  670C                     beq        +0xE /* 00000044 */
  23. 00000038  3028 0020                move.w     D0, [A0 + 0x20]
  24. 0000003C  9069 039A                sub.w      D0, [A1 + 0x39A]
  25. 00000040  3340 03A0                move.w     [A1 + 0x3A0], D0
  26. label00000044:
  27. 00000044  2F2E 0010                move.l     -[A7], [A6 + 0x10]
  28. 00000048  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  29. 0000004C  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  30. 00000050  A9D1                     trap       TESetSelect
  31. 00000052  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  32. 00000056  6708                     beq        +0xA /* 00000060 */
  33. 00000058  487A 0018                pea.l      [PC + 0x18 /* 00000072 */]
  34. 0000005C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  35. label00000060:
  36. 00000060  548F                     addq.l     A7, 2
  37. label00000062:
  38. 00000062  4CDF 0408                movem.l    A2,D3, [A7]+
  39. 00000066  4E5E                     unlink     A6
  40. 00000068  2F57 000C                move.l     [A7 + 0xC], [A7]
  41. 0000006C  4FEF 000C                lea.l      A7, [A7 + 0xC]
  42. 00000070  4E75                     rts
  43. 00000072  8D4D 5954                pack       -[A6], -[A5], 0x5954
  44. 00000076  4553                     chk.w      D2, [A3]
  45. 00000078  4554                     chk.w      D2, [A4]
  46. 0000007A  5345                     subq.w     D5, 1
  47. 0000007C  4C45 4354                movem.l    A6,A1,A0,D6,D4,D2, D5
  48. 00000080  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  49. export_351: // at 00000082 (misaligned)
  50. 00000084  FFF6                     .extension 0xFF6 // unimplemented
  51. 00000086  48E7 1020                movem.l    -[A7], D3,A2
  52. 0000008A  486E FFFC                pea.l      [A6 - 0x4]
  53. 0000008E  A874                     trap       GetPort
  54. 00000090  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  55. 00000094  6708                     beq        +0xA /* 0000009E */
  56. 00000096  487A 01E8                pea.l      [PC + 0x1E8 /* 00000280 */]
  57. 0000009A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  58. label0000009E:
  59. 0000009E  548F                     addq.l     A7, 2
  60. 000000A0  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  61. 000000A4  A873                     trap       SetPort
  62. 000000A6  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  63. 000000AA  6708                     beq        +0xA /* 000000B4 */
  64. 000000AC  487A 01D2                pea.l      [PC + 0x1D2 /* 00000280 */]
  65. 000000B0  4EAD 0CD2                jsr        [A5 + 0xCD2]
  66. label000000B4:
  67. 000000B4  548F                     addq.l     A7, 2
  68. 000000B6  206E 0008                movea.l    A0, [A6 + 0x8]
  69. 000000BA  08E8 0000 03A2           bset.b     [A0 + 0x3A2], 0x0
  70. 000000C0  6612                     bne        +0x14 /* 000000D4 */
  71. 000000C2  2268 023C                movea.l    A1, [A0 + 0x23C]
  72. 000000C6  2251                     movea.l    A1, [A1]
  73. 000000C8  3029 0020                move.w     D0, [A1 + 0x20]
  74. 000000CC  9068 039A                sub.w      D0, [A0 + 0x39A]
  75. 000000D0  3140 03A0                move.w     [A0 + 0x3A0], D0
  76. label000000D4:
  77. 000000D4  08A8 0000 0391           bclr.b     [A0 + 0x391], 0x0
  78. 000000DA  6730                     beq        +0x32 /* 0000010C */
  79. 000000DC  2068 039C                movea.l    A0, [A0 + 0x39C]
  80. 000000E0  A025                     trap       GetHandleSize
  81. 000000E2  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  82. 000000E6  6708                     beq        +0xA /* 000000F0 */
  83. 000000E8  487A 0196                pea.l      [PC + 0x196 /* 00000280 */]
  84. 000000EC  4EAD 0CD2                jsr        [A5 + 0xCD2]
  85. label000000F0:
  86. 000000F0  548F                     addq.l     A7, 2
  87. 000000F2  2050                     movea.l    A0, [A0]
  88. 000000F4  43F0 0800                lea.l      A1, [A0 + D0]
  89. 000000F8  E248                     lsr        D0.w, 1
  90. 000000FA  5340                     subq.w     D0, 1
  91. 000000FC  6B0A                     bmi        +0xC /* 00000108 */
  92. label000000FE:
  93. 000000FE  1221                     move.b     D1, -[A1]
  94. 00000100  1290                     move.b     [A1], [A0]
  95. 00000102  10C1                     move.b     [A0]+, D1
  96. 00000104  51C8 FFF8                dbf        D0, -0xA /* 000000FE */
  97. label00000108:
  98. 00000108  206E 0008                movea.l    A0, [A6 + 0x8]
  99. label0000010C:
  100. 0000010C  2448                     movea.l    A2, A0
  101. 0000010E  7000                     moveq.l    D0, 0x00
  102. 00000110  3028 03A0                move.w     D0, [A0 + 0x3A0]
  103. 00000114  A122                     trap       NewHandle, flags=1
  104. 00000116  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  105. 0000011A  6708                     beq        +0xA /* 00000124 */
  106. 0000011C  487A 0162                pea.l      [PC + 0x162 /* 00000280 */]
  107. 00000120  4EAD 0CD2                jsr        [A5 + 0xCD2]
  108. label00000124:
  109. 00000124  548F                     addq.l     A7, 2
  110. 00000126  2D48 FFF8                move.l     [A6 - 0x8], A0
  111. 0000012A  2050                     movea.l    A0, [A0]
  112. 0000012C  226A 023C                movea.l    A1, [A2 + 0x23C]
  113. 00000130  2251                     movea.l    A1, [A1]
  114. 00000132  2269 003E                movea.l    A1, [A1 + 0x3E]
  115. 00000136  2251                     movea.l    A1, [A1]
  116. 00000138  302A 039A                move.w     D0, [A2 + 0x39A]
  117. 0000013C  43F1 0000                lea.l      A1, [A1 + D0.w]
  118. 00000140  302A 03A0                move.w     D0, [A2 + 0x3A0]
  119. 00000144  5340                     subq.w     D0, 1
  120. 00000146  6B06                     bmi        +0x8 /* 0000014E */
  121. label00000148:
  122. 00000148  10D9                     move.b     [A0]+, [A1]+
  123. 0000014A  51C8 FFFC                dbf        D0, -0x6 /* 00000148 */
  124. label0000014E:
  125. 0000014E  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  126. 00000152  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  127. 00000156  4EAD 0AA2                jsr        [A5 + 0xAA2]
  128. 0000015A  3D5F FFF6                move.w     [A6 - 0xA], [A7]+
  129. 0000015E  7000                     moveq.l    D0, 0x00
  130. 00000160  302A 039A                move.w     D0, [A2 + 0x39A]
  131. 00000164  2F00                     move.l     -[A7], D0
  132. 00000166  D06A 03A0                add.w      D0, [A2 + 0x3A0]
  133. 0000016A  2F00                     move.l     -[A7], D0
  134. 0000016C  2F2A 023C                move.l     -[A7], [A2 + 0x23C]
  135. 00000170  4EBA FE8E                jsr        [PC - 0x172 /* 00000000 */]
  136. 00000174  2F2A 023C                move.l     -[A7], [A2 + 0x23C]
  137. 00000178  A9D7                     trap       TEDelete
  138. 0000017A  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  139. 0000017E  6708                     beq        +0xA /* 00000188 */
  140. 00000180  487A 00FE                pea.l      [PC + 0xFE /* 00000280 */]
  141. 00000184  4EAD 0CD2                jsr        [A5 + 0xCD2]
  142. label00000188:
  143. 00000188  548F                     addq.l     A7, 2
  144. 0000018A  206A 039C                movea.l    A0, [A2 + 0x39C]
  145. 0000018E  A029                     trap       HLock
  146. 00000190  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  147. 00000194  6708                     beq        +0xA /* 0000019E */
  148. 00000196  487A 00E8                pea.l      [PC + 0xE8 /* 00000280 */]
  149. 0000019A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  150. label0000019E:
  151. 0000019E  548F                     addq.l     A7, 2
  152. 000001A0  2F10                     move.l     -[A7], [A0]
  153. 000001A2  A025                     trap       GetHandleSize
  154. 000001A4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  155. 000001A8  6708                     beq        +0xA /* 000001B2 */
  156. 000001AA  487A 00D4                pea.l      [PC + 0xD4 /* 00000280 */]
  157. 000001AE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  158. label000001B2:
  159. 000001B2  548F                     addq.l     A7, 2
  160. 000001B4  2F00                     move.l     -[A7], D0
  161. 000001B6  2F2A 023C                move.l     -[A7], [A2 + 0x23C]
  162. 000001BA  A9DE                     trap       TEInsert
  163. 000001BC  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  164. 000001C0  6708                     beq        +0xA /* 000001CA */
  165. 000001C2  487A 00BC                pea.l      [PC + 0xBC /* 00000280 */]
  166. 000001C6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  167. label000001CA:
  168. 000001CA  548F                     addq.l     A7, 2
  169. 000001CC  7000                     moveq.l    D0, 0x00
  170. 000001CE  302A 039A                move.w     D0, [A2 + 0x39A]
  171. 000001D2  2F00                     move.l     -[A7], D0
  172. 000001D4  206A 023C                movea.l    A0, [A2 + 0x23C]
  173. 000001D8  2050                     movea.l    A0, [A0]
  174. 000001DA  3028 0022                move.w     D0, [A0 + 0x22]
  175. 000001DE  2F00                     move.l     -[A7], D0
  176. 000001E0  2F2A 023C                move.l     -[A7], [A2 + 0x23C]
  177. 000001E4  4EBA FE1A                jsr        [PC - 0x1E6 /* 00000000 */]
  178. 000001E8  206A 039C                movea.l    A0, [A2 + 0x39C]
  179. 000001EC  256E FFF8 039C           move.l     [A2 + 0x39C], [A6 - 0x8]
  180. 000001F2  A025                     trap       GetHandleSize
  181. 000001F4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  182. 000001F8  6708                     beq        +0xA /* 00000202 */
  183. 000001FA  487A 0084                pea.l      [PC + 0x84 /* 00000280 */]
  184. 000001FE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  185. label00000202:
  186. 00000202  548F                     addq.l     A7, 2
  187. 00000204  3540 03A0                move.w     [A2 + 0x3A0], D0
  188. 00000208  A023                     trap       DisposHandle/DisposeHandle
  189. 0000020A  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  190. 0000020E  6708                     beq        +0xA /* 00000218 */
  191. 00000210  487A 006E                pea.l      [PC + 0x6E /* 00000280 */]
  192. 00000214  4EAD 0CD2                jsr        [A5 + 0xCD2]
  193. label00000218:
  194. 00000218  548F                     addq.l     A7, 2
  195. 0000021A  3F2E FFF6                move.w     -[A7], [A6 - 0xA]
  196. 0000021E  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  197. 00000222  4EAD 0AAA                jsr        [A5 + 0xAAA]
  198. 00000226  206E 0008                movea.l    A0, [A6 + 0x8]
  199. 0000022A  08E8 0000 01BE           bset.b     [A0 + 0x1BE], 0x0
  200. 00000230  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  201. 00000234  A873                     trap       SetPort
  202. 00000236  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  203. 0000023A  6708                     beq        +0xA /* 00000244 */
  204. 0000023C  487A 0042                pea.l      [PC + 0x42 /* 00000280 */]
  205. 00000240  4EAD 0CD2                jsr        [A5 + 0xCD2]
  206. label00000244:
  207. 00000244  548F                     addq.l     A7, 2
  208. 00000246  4CDF 0408                movem.l    A2,D3, [A7]+
  209. 0000024A  202E 0008                move.l     D0, [A6 + 0x8]
  210. 0000024E  671C                     beq        +0x1E /* 0000026C */
  211. 00000250  2040                     movea.l    A0, D0
  212. 00000252  2028 0098                move.l     D0, [A0 + 0x98]
  213. 00000256  6714                     beq        +0x16 /* 0000026C */
  214. 00000258  C188                     exg        D0, A0
  215. 0000025A  2F3C 0000 000C           move.l     -[A7], 0xC
  216. 00000260  2F00                     move.l     -[A7], D0
  217. 00000262  42A7                     clr.l      -[A7]
  218. 00000264  3F3C 0016                move.w     -[A7], 0x16
  219. 00000268  4E90                     jsr        [A0]
  220. 0000026A  201F                     move.l     D0, [A7]+
  221. label0000026C:
  222. 0000026C  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  223. 00000270  4EAD 09AA                jsr        [A5 + 0x9AA]
  224. 00000274  4E5E                     unlink     A6
  225. 00000276  2F57 0004                move.l     [A7 + 0x4], [A7]
  226. 0000027A  4FEF 0004                lea.l      A7, [A7 + 0x4]
  227. 0000027E  4E75                     rts
  228. 00000280  884D                     or.w       D4, A5
  229. 00000282  5954                     subq.w     [A4], 4
  230. 00000284  4555                     chk.w      D2, [A5]
  231. 00000286  4E44                     trap       4
  232. 00000288  4F20                     .invalid   7, -[A0] // invalid opcode 4 with b == 4
  233. 0000028A  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  234. export_352: // at 0000028C (misaligned)
  235. 0000028E  FFF8                     .extension 0xFF8 // unimplemented
  236. 00000290  48E7 0020                movem.l    -[A7], A2
  237. 00000294  206E 000C                movea.l    A0, [A6 + 0xC]
  238. 00000298  2250                     movea.l    A1, [A0]
  239. 0000029A  3D69 0020 FFFE           move.w     [A6 - 0x2], [A1 + 0x20]
  240. 000002A0  3D69 0022 FFFC           move.w     [A6 - 0x4], [A1 + 0x22]
  241. 000002A6  2D69 003E FFF8           move.l     [A6 - 0x8], [A1 + 0x3E]
  242. 000002AC  206E FFF8                movea.l    A0, [A6 - 0x8]
  243. 000002B0  2250                     movea.l    A1, [A0]
  244. 000002B2  246E 0008                movea.l    A2, [A6 + 0x8]
  245. 000002B6  4212                     clr.b      [A2]
  246. 000002B8  7000                     moveq.l    D0, 0x00
  247. 000002BA  7200                     moveq.l    D1, 0x00
  248. 000002BC  322E FFFC                move.w     D1, [A6 - 0x4]
  249. 000002C0  302E FFFE                move.w     D0, [A6 - 0x2]
  250. 000002C4  9280                     sub.l      D1, D0
  251. 000002C6  6700 001A                beq        +0x1C /* 000002E2 */
  252. 000002CA  0C81 0000 00FF           cmpi.l     D1, 0xFF
  253. 000002D0  6200 0010                bhi        +0x12 /* 000002E2 */
  254. 000002D4  14C1                     move.b     [A2]+, D1
  255. 000002D6  43F1 0000                lea.l      A1, [A1 + D0.w]
  256. 000002DA  5341                     subq.w     D1, 1
  257. label000002DC:
  258. 000002DC  14D9                     move.b     [A2]+, [A1]+
  259. 000002DE  51C9 FFFC                dbf        D1, -0x6 /* 000002DC */
  260. label000002E2:
  261. 000002E2  4CDF 0400                movem.l    A2, [A7]+
  262. 000002E6  4E5E                     unlink     A6
  263. 000002E8  2F57 0008                move.l     [A7 + 0x8], [A7]
  264. 000002EC  4FEF 0008                lea.l      A7, [A7 + 0x8]
  265. 000002F0  4E75                     rts
  266. 000002F2  914D                     subx.w     -[A0], -[A5]
  267. 000002F4  5947                     subq.w     D7, 4
  268. 000002F6  4554                     chk.w      D2, [A4]
  269. 000002F8  5345                     subq.w     D5, 1
  270. 000002FA  4C45 4354                movem.l    A6,A1,A0,D6,D4,D2, D5
  271. 000002FE  4544                     chk.w      D2, D4
  272. 00000300  5445                     addq.w     D5, 2
  273. 00000302  5854                     addq.w     [A4], 4
  274. 00000304  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  275. export_353: // at 00000306 (misaligned)
  276. 00000308  FFF8                     .extension 0xFF8 // unimplemented
  277. 0000030A  206E 0008                movea.l    A0, [A6 + 0x8]
  278. 0000030E  2250                     movea.l    A1, [A0]
  279. 00000310  2D69 0052 FFFC           move.l     [A6 - 0x4], [A1 + 0x52]
  280. 00000316  486E FFF8                pea.l      [A6 - 0x8]
  281. 0000031A  A874                     trap       GetPort
  282. 0000031C  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  283. 00000320  6708                     beq        +0xA /* 0000032A */
  284. 00000322  487A 005E                pea.l      [PC + 0x5E /* 00000382 */]
  285. 00000326  4EAD 0CD2                jsr        [A5 + 0xCD2]
  286. label0000032A:
  287. 0000032A  548F                     addq.l     A7, 2
  288. 0000032C  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  289. 00000330  A873                     trap       SetPort
  290. 00000332  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  291. 00000336  6708                     beq        +0xA /* 00000340 */
  292. 00000338  487A 0048                pea.l      [PC + 0x48 /* 00000382 */]
  293. 0000033C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  294. label00000340:
  295. 00000340  548F                     addq.l     A7, 2
  296. 00000342  3F2E 000E                move.w     -[A7], [A6 + 0xE]
  297. 00000346  3F2E 000C                move.w     -[A7], [A6 + 0xC]
  298. 0000034A  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  299. 0000034E  A9DD                     trap       TEScroll
  300. 00000350  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  301. 00000354  6708                     beq        +0xA /* 0000035E */
  302. 00000356  487A 002A                pea.l      [PC + 0x2A /* 00000382 */]
  303. 0000035A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  304. label0000035E:
  305. 0000035E  548F                     addq.l     A7, 2
  306. 00000360  2F2E FFF8                move.l     -[A7], [A6 - 0x8]
  307. 00000364  A873                     trap       SetPort
  308. 00000366  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  309. 0000036A  6708                     beq        +0xA /* 00000374 */
  310. 0000036C  487A 0014                pea.l      [PC + 0x14 /* 00000382 */]
  311. 00000370  4EAD 0CD2                jsr        [A5 + 0xCD2]
  312. label00000374:
  313. 00000374  548F                     addq.l     A7, 2
  314. 00000376  4E5E                     unlink     A6
  315. 00000378  2F57 0008                move.l     [A7 + 0x8], [A7]
  316. 0000037C  4FEF 0008                lea.l      A7, [A7 + 0x8]
  317. 00000380  4E75                     rts
  318. 00000382  8A4D                     or.w       D5, A5
  319. 00000384  5954                     subq.w     [A4], 4
  320. 00000386  4553                     chk.w      D2, [A3]
  321. 00000388  4352                     chk.w      D1, [A2]
  322. 0000038A  4F4C                     chk.w      D7, A4
  323. 0000038C  4C20 0000                movem.w    <none>, -[A0]
  324. export_354:
  325. 00000390  4E56 FFF6                link       A6, -0x000A
  326. 00000394  48E7 1000                movem.l    -[A7], D3
  327. 00000398  206E 0008                movea.l    A0, [A6 + 0x8]
  328. 0000039C  2250                     movea.l    A1, [A0]
  329. 0000039E  2D69 0052 FFFA           move.l     [A6 - 0x6], [A1 + 0x52]
  330. 000003A4  486E FFF6                pea.l      [A6 - 0xA]
  331. 000003A8  A874                     trap       GetPort
  332. 000003AA  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  333. 000003AE  6708                     beq        +0xA /* 000003B8 */
  334. 000003B0  487A 018A                pea.l      [PC + 0x18A /* 0000053C */]
  335. 000003B4  4EAD 0CD2                jsr        [A5 + 0xCD2]
  336. label000003B8:
  337. 000003B8  548F                     addq.l     A7, 2
  338. 000003BA  2F2E FFFA                move.l     -[A7], [A6 - 0x6]
  339. 000003BE  A873                     trap       SetPort
  340. 000003C0  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  341. 000003C4  6708                     beq        +0xA /* 000003CE */
  342. 000003C6  487A 0174                pea.l      [PC + 0x174 /* 0000053C */]
  343. 000003CA  4EAD 0CD2                jsr        [A5 + 0xCD2]
  344. label000003CE:
  345. 000003CE  548F                     addq.l     A7, 2
  346. 000003D0  0C2E 001C 000D           cmpi.b     [A6 + 0xD], 0x1C
  347. 000003D6  655A                     bcs        +0x5C /* 00000432 */
  348. 000003D8  0C2E 0020 000D           cmpi.b     [A6 + 0xD], 0x20 /* ' ' */
  349. 000003DE  6452                     bcc        +0x54 /* 00000432 */
  350. 000003E0  206E FFFA                movea.l    A0, [A6 - 0x6]
  351. 000003E4  08E8 0000 03A2           bset.b     [A0 + 0x3A2], 0x0
  352. 000003EA  661A                     bne        +0x1C /* 00000406 */
  353. 000003EC  0828 0000 03A3           btst.b     [A0 + 0x3A3], 0x0
  354. 000003F2  6712                     beq        +0x14 /* 00000406 */
  355. 000003F4  2268 023C                movea.l    A1, [A0 + 0x23C]
  356. 000003F8  2251                     movea.l    A1, [A1]
  357. 000003FA  3029 0020                move.w     D0, [A1 + 0x20]
  358. 000003FE  9068 039A                sub.w      D0, [A0 + 0x39A]
  359. 00000402  3140 03A0                move.w     [A0 + 0x3A0], D0
  360. label00000406:
  361. 00000406  3F2E 000C                move.w     -[A7], [A6 + 0xC]
  362. 0000040A  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  363. 0000040E  A9DC                     trap       TEKey
  364. 00000410  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  365. 00000414  6708                     beq        +0xA /* 0000041E */
  366. 00000416  487A 0124                pea.l      [PC + 0x124 /* 0000053C */]
  367. 0000041A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  368. label0000041E:
  369. 0000041E  548F                     addq.l     A7, 2
  370. 00000420  1F3C 0001                move.b     -[A7], 0x1
  371. 00000424  4227                     clr.b      -[A7]
  372. 00000426  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  373. 0000042A  4EAD 0C22                jsr        [A5 + 0xC22]
  374. 0000042E  6000 00E6                bra        +0xE8 /* 00000516 */
  375. label00000432:
  376. 00000432  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  377. 00000436  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  378. 0000043A  4EBA 03F8                jsr        [PC + 0x3F8 /* 00000834 */]
  379. 0000043E  3D5F FFFE                move.w     [A6 - 0x2], [A7]+
  380. 00000442  0C2E 0008 000D           cmpi.b     [A6 + 0xD], 0x8
  381. 00000448  6670                     bne        +0x72 /* 000004BA */
  382. 0000044A  206E 0008                movea.l    A0, [A6 + 0x8]
  383. 0000044E  2050                     movea.l    A0, [A0]
  384. 00000450  3028 0022                move.w     D0, [A0 + 0x22]
  385. 00000454  3628 0020                move.w     D3, [A0 + 0x20]
  386. 00000458  675E                     beq        +0x60 /* 000004B8 */
  387. 0000045A  9043                     sub.w      D0, D3
  388. 0000045C  6600 005A                bne        +0x5C /* 000004B8 */
  389. 00000460  226E FFFA                movea.l    A1, [A6 - 0x6]
  390. 00000464  B669 039A                cmp.w      D3, [A1 + 0x39A]
  391. 00000468  6702                     beq        +0x4 /* 0000046C */
  392. 0000046A  644C                     bcc        +0x4E /* 000004B8 */
  393. label0000046C:
  394. 0000046C  2068 003E                movea.l    A0, [A0 + 0x3E]
  395. 00000470  2050                     movea.l    A0, [A0]
  396. 00000472  1630 30FF                move.b     D3, [A0 + D3.w - 0x1]
  397. 00000476  5369 039A                subq.w     [A1 + 0x39A], 1
  398. 0000047A  2069 039C                movea.l    A0, [A1 + 0x39C]
  399. 0000047E  A025                     trap       GetHandleSize
  400. 00000480  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  401. 00000484  6708                     beq        +0xA /* 0000048E */
  402. 00000486  487A 00B4                pea.l      [PC + 0xB4 /* 0000053C */]
  403. 0000048A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  404. label0000048E:
  405. 0000048E  548F                     addq.l     A7, 2
  406. 00000490  2F00                     move.l     -[A7], D0
  407. 00000492  5280                     addq.l     D0, 1
  408. 00000494  A024                     trap       SetHandleSize
  409. 00000496  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  410. 0000049A  6708                     beq        +0xA /* 000004A4 */
  411. 0000049C  487A 009E                pea.l      [PC + 0x9E /* 0000053C */]
  412. 000004A0  4EAD 0CD2                jsr        [A5 + 0xCD2]
  413. label000004A4:
  414. 000004A4  548F                     addq.l     A7, 2
  415. 000004A6  201F                     move.l     D0, [A7]+
  416. 000004A8  2050                     movea.l    A0, [A0]
  417. 000004AA  1183 0800                move.b     [A0 + D0], D3
  418. 000004AE  206E FFFA                movea.l    A0, [A6 - 0x6]
  419. 000004B2  117C 0001 0391           move.b     [A0 + 0x391], 0x1
  420. label000004B8:
  421. 000004B8  6020                     bra        +0x22 /* 000004DA */
  422. label000004BA:
  423. 000004BA  206E 0008                movea.l    A0, [A6 + 0x8]
  424. 000004BE  2050                     movea.l    A0, [A0]
  425. 000004C0  3028 003C                move.w     D0, [A0 + 0x3C]
  426. 000004C4  0C40 7FFF                cmpi.w     D0, 0x7FFF
  427. 000004C8  6510                     bcs        +0x12 /* 000004DA */
  428. 000004CA  3F3C 002B                move.w     -[A7], 0x2B /* '+' */
  429. 000004CE  4EAD 04FA                jsr        [A5 + 0x4FA]
  430. 000004D2  08ED 0001 E862           bset.b     [A5 - 0x179E], 0x1
  431. 000004D8  601A                     bra        +0x1C /* 000004F4 */
  432. label000004DA:
  433. 000004DA  3F2E 000C                move.w     -[A7], [A6 + 0xC]
  434. 000004DE  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  435. 000004E2  A9DC                     trap       TEKey
  436. 000004E4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  437. 000004E8  6708                     beq        +0xA /* 000004F2 */
  438. 000004EA  487A 0050                pea.l      [PC + 0x50 /* 0000053C */]
  439. 000004EE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  440. label000004F2:
  441. 000004F2  548F                     addq.l     A7, 2
  442. label000004F4:
  443. 000004F4  1F3C 0001                move.b     -[A7], 0x1
  444. 000004F8  4227                     clr.b      -[A7]
  445. 000004FA  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  446. 000004FE  4EAD 0C22                jsr        [A5 + 0xC22]
  447. 00000502  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  448. 00000506  4EBA 0442                jsr        [PC + 0x442 /* 0000094A */]
  449. 0000050A  3F2E FFFE                move.w     -[A7], [A6 - 0x2]
  450. 0000050E  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  451. 00000512  4EBA 03FA                jsr        [PC + 0x3FA /* 0000090E */]
  452. label00000516:
  453. 00000516  2F2E FFF6                move.l     -[A7], [A6 - 0xA]
  454. 0000051A  A873                     trap       SetPort
  455. 0000051C  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  456. 00000520  6708                     beq        +0xA /* 0000052A */
  457. 00000522  487A 0018                pea.l      [PC + 0x18 /* 0000053C */]
  458. 00000526  4EAD 0CD2                jsr        [A5 + 0xCD2]
  459. label0000052A:
  460. 0000052A  548F                     addq.l     A7, 2
  461. 0000052C  4CDF 0008                movem.l    D3, [A7]+
  462. 00000530  4E5E                     unlink     A6
  463. 00000532  2F57 0006                move.l     [A7 + 0x6], [A7]
  464. 00000536  4FEF 0006                lea.l      A7, [A7 + 0x6]
  465. 0000053A  4E75                     rts
  466. 0000053C  874D 5954                pack       -[A3], -[A5], 0x5954
  467. 00000540  454B                     chk.w      D2, A3
  468. 00000542  4559                     chk.w      D2, [A1]+
  469. 00000544  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  470. export_355: // at 00000546 (misaligned)
  471. 00000548  FFFE                     .extension 0xFFE // unimplemented
  472. 0000054A  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  473. 0000054E  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  474. 00000552  4EBA 02E0                jsr        [PC + 0x2E0 /* 00000834 */]
  475. 00000556  3D5F FFFE                move.w     [A6 - 0x2], [A7]+
  476. 0000055A  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  477. 0000055E  A9D6                     trap       TECut
  478. 00000560  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  479. 00000564  6708                     beq        +0xA /* 0000056E */
  480. 00000566  487A 0040                pea.l      [PC + 0x40 /* 000005A8 */]
  481. 0000056A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  482. label0000056E:
  483. 0000056E  548F                     addq.l     A7, 2
  484. 00000570  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  485. 00000574  A9FA                     trap       UnloadScrap/UnlodeScrap
  486. 00000576  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  487. 0000057A  6708                     beq        +0xA /* 00000584 */
  488. 0000057C  487A 002A                pea.l      [PC + 0x2A /* 000005A8 */]
  489. 00000580  4EAD 0CD2                jsr        [A5 + 0xCD2]
  490. label00000584:
  491. 00000584  548F                     addq.l     A7, 2
  492. 00000586  201F                     move.l     D0, [A7]+
  493. 00000588  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  494. 0000058C  4EBA 03BC                jsr        [PC + 0x3BC /* 0000094A */]
  495. 00000590  3F2E FFFE                move.w     -[A7], [A6 - 0x2]
  496. 00000594  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  497. 00000598  4EBA 0374                jsr        [PC + 0x374 /* 0000090E */]
  498. 0000059C  4E5E                     unlink     A6
  499. 0000059E  2F57 0004                move.l     [A7 + 0x4], [A7]
  500. 000005A2  4FEF 0004                lea.l      A7, [A7 + 0x4]
  501. 000005A6  4E75                     rts
  502. 000005A8  874D 5954                pack       -[A3], -[A5], 0x5954
  503. 000005AC  4543                     chk.w      D2, D3
  504. 000005AE  5554                     subq.w     [A4], 2
  505. 000005B0  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  506. export_356: // at 000005B2 (misaligned)
  507. 000005B4  FFEE                     .extension 0xFEE // unimplemented
  508. 000005B6  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  509. 000005BA  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  510. 000005BE  4EBA 0274                jsr        [PC + 0x274 /* 00000834 */]
  511. 000005C2  3D5F FFFE                move.w     [A6 - 0x2], [A7]+
  512. 000005C6  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  513. 000005CA  A9FB                     trap       LoadScrap/LodeScrap
  514. 000005CC  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  515. 000005D0  6708                     beq        +0xA /* 000005DA */
  516. 000005D2  487A 00D4                pea.l      [PC + 0xD4 /* 000006A8 */]
  517. 000005D6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  518. label000005DA:
  519. 000005DA  548F                     addq.l     A7, 2
  520. 000005DC  201F                     move.l     D0, [A7]+
  521. 000005DE  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  522. 000005E2  6708                     beq        +0xA /* 000005EC */
  523. 000005E4  487A 00C2                pea.l      [PC + 0xC2 /* 000006A8 */]
  524. 000005E8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  525. label000005EC:
  526. 000005EC  548F                     addq.l     A7, 2
  527. 000005EE  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  528. 000005F2  42A7                     clr.l      -[A7]
  529. 000005F4  2F3C 5445 5854           move.l     -[A7], 0x54455854 /* 'TEXT' */
  530. 000005FA  486E FFF6                pea.l      [A6 - 0xA]
  531. 000005FE  A9FD                     trap       GetScrap
  532. 00000600  201F                     move.l     D0, [A7]+
  533. 00000602  0C80 FFFF FF9A           cmpi.l     D0, 0xFFFFFF9A
  534. 00000608  675C                     beq        +0x5E /* 00000666 */
  535. 0000060A  4A80                     tst.l      D0
  536. 0000060C  6A14                     bpl        +0x16 /* 00000622 */
  537. 0000060E  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  538. 00000612  6708                     beq        +0xA /* 0000061C */
  539. 00000614  487A 0092                pea.l      [PC + 0x92 /* 000006A8 */]
  540. 00000618  4EAD 0CD2                jsr        [A5 + 0xCD2]
  541. label0000061C:
  542. 0000061C  548F                     addq.l     A7, 2
  543. 0000061E  6000 0046                bra        +0x48 /* 00000666 */
  544. label00000622:
  545. 00000622  206E 0008                movea.l    A0, [A6 + 0x8]
  546. 00000626  2050                     movea.l    A0, [A0]
  547. 00000628  7200                     moveq.l    D1, 0x00
  548. 0000062A  3228 003C                move.w     D1, [A0 + 0x3C]
  549. 0000062E  D280                     add.l      D1, D0
  550. 00000630  0C81 0000 8000           cmpi.l     D1, 0x8000
  551. 00000636  6510                     bcs        +0x12 /* 00000648 */
  552. 00000638  3F3C 002B                move.w     -[A7], 0x2B /* '+' */
  553. 0000063C  4EAD 04FA                jsr        [A5 + 0x4FA]
  554. 00000640  08ED 0001 E862           bset.b     [A5 - 0x179E], 0x1
  555. 00000646  601E                     bra        +0x20 /* 00000666 */
  556. label00000648:
  557. 00000648  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  558. 0000064C  A9DB                     trap       TEPaste
  559. 0000064E  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  560. 00000652  6708                     beq        +0xA /* 0000065C */
  561. 00000654  487A 0052                pea.l      [PC + 0x52 /* 000006A8 */]
  562. 00000658  4EAD 0CD2                jsr        [A5 + 0xCD2]
  563. label0000065C:
  564. 0000065C  548F                     addq.l     A7, 2
  565. 0000065E  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  566. 00000662  4EBA 02E6                jsr        [PC + 0x2E6 /* 0000094A */]
  567. label00000666:
  568. 00000666  206E 0008                movea.l    A0, [A6 + 0x8]
  569. 0000066A  2050                     movea.l    A0, [A0]
  570. 0000066C  2068 0052                movea.l    A0, [A0 + 0x52]
  571. 00000670  2008                     move.l     D0, A0
  572. 00000672  671C                     beq        +0x1E /* 00000690 */
  573. 00000674  2040                     movea.l    A0, D0
  574. 00000676  2028 0098                move.l     D0, [A0 + 0x98]
  575. 0000067A  6714                     beq        +0x16 /* 00000690 */
  576. 0000067C  C188                     exg        D0, A0
  577. 0000067E  2F3C 0000 000C           move.l     -[A7], 0xC
  578. 00000684  2F00                     move.l     -[A7], D0
  579. 00000686  42A7                     clr.l      -[A7]
  580. 00000688  3F3C 0016                move.w     -[A7], 0x16
  581. 0000068C  4E90                     jsr        [A0]
  582. 0000068E  201F                     move.l     D0, [A7]+
  583. label00000690:
  584. 00000690  3F2E FFFE                move.w     -[A7], [A6 - 0x2]
  585. 00000694  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  586. 00000698  4EBA 0274                jsr        [PC + 0x274 /* 0000090E */]
  587. 0000069C  4E5E                     unlink     A6
  588. 0000069E  2F57 0004                move.l     [A7 + 0x4], [A7]
  589. 000006A2  4FEF 0004                lea.l      A7, [A7 + 0x4]
  590. 000006A6  4E75                     rts
  591. 000006A8  894D 5954                pack       -[A4], -[A5], 0x5954
  592. 000006AC  4550                     chk.w      D2, [A0]
  593. 000006AE  4153                     chk.w      D0, [A3]
  594. 000006B0  5445                     addq.w     D5, 2
  595. 000006B2  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  596. export_357: // at 000006B4 (misaligned)
  597. 000006B6  FFFE                     .extension 0xFFE // unimplemented
  598. 000006B8  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  599. 000006BC  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  600. 000006C0  4EBA 0172                jsr        [PC + 0x172 /* 00000834 */]
  601. 000006C4  3D5F FFFE                move.w     [A6 - 0x2], [A7]+
  602. 000006C8  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  603. 000006CC  A9D7                     trap       TEDelete
  604. 000006CE  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  605. 000006D2  6708                     beq        +0xA /* 000006DC */
  606. 000006D4  487A 0028                pea.l      [PC + 0x28 /* 000006FE */]
  607. 000006D8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  608. label000006DC:
  609. 000006DC  548F                     addq.l     A7, 2
  610. 000006DE  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  611. 000006E2  4EBA 0266                jsr        [PC + 0x266 /* 0000094A */]
  612. 000006E6  3F2E FFFE                move.w     -[A7], [A6 - 0x2]
  613. 000006EA  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  614. 000006EE  4EBA 021E                jsr        [PC + 0x21E /* 0000090E */]
  615. 000006F2  4E5E                     unlink     A6
  616. 000006F4  2F57 0004                move.l     [A7 + 0x4], [A7]
  617. 000006F8  4FEF 0004                lea.l      A7, [A7 + 0x4]
  618. 000006FC  4E75                     rts
  619. 000006FE  8A4D                     or.w       D5, A5
  620. 00000700  5954                     subq.w     [A4], 4
  621. 00000702  4544                     chk.w      D2, D4
  622. 00000704  454C                     chk.w      D2, A4
  623. 00000706  4554                     chk.w      D2, [A4]
  624. 00000708  4520                     .invalid   2, -[A0] // invalid opcode 4 with b == 4
  625. 0000070A  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  626. export_358: // at 0000070C (misaligned)
  627. 0000070E  FFF4                     .extension 0xFF4 // unimplemented
  628. 00000710  202E 000C                move.l     D0, [A6 + 0xC]
  629. 00000714  6700 0104                beq        +0x106 /* 0000081A */
  630. 00000718  206E 0008                movea.l    A0, [A6 + 0x8]
  631. 0000071C  2250                     movea.l    A1, [A0]
  632. 0000071E  137C 0001 0047           move.b     [A1 + 0x47], 0x1
  633. 00000724  2D69 0052 FFF6           move.l     [A6 - 0xA], [A1 + 0x52]
  634. 0000072A  486E FFFA                pea.l      [A6 - 0x6]
  635. 0000072E  A874                     trap       GetPort
  636. 00000730  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  637. 00000734  6708                     beq        +0xA /* 0000073E */
  638. 00000736  487A 00EE                pea.l      [PC + 0xEE /* 00000826 */]
  639. 0000073A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  640. label0000073E:
  641. 0000073E  548F                     addq.l     A7, 2
  642. 00000740  2F2E FFF6                move.l     -[A7], [A6 - 0xA]
  643. 00000744  A873                     trap       SetPort
  644. 00000746  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  645. 0000074A  6708                     beq        +0xA /* 00000754 */
  646. 0000074C  487A 00D8                pea.l      [PC + 0xD8 /* 00000826 */]
  647. 00000750  4EAD 0CD2                jsr        [A5 + 0xCD2]
  648. label00000754:
  649. 00000754  548F                     addq.l     A7, 2
  650. 00000756  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  651. 0000075A  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  652. 0000075E  4EBA 00D4                jsr        [PC + 0xD4 /* 00000834 */]
  653. 00000762  3D5F FFFE                move.w     [A6 - 0x2], [A7]+
  654. 00000766  422E FFF5                clr.b      [A6 - 0xB]
  655. 0000076A  206E 0010                movea.l    A0, [A6 + 0x10]
  656. 0000076E  202E 000C                move.l     D0, [A6 + 0xC]
  657. 00000772  0C30 000D 08FF           cmpi.b     [A0 + D0 - 0x1], 0xD /* '\r' */
  658. 00000778  6608                     bne        +0xA /* 00000782 */
  659. 0000077A  1D7C 0001 FFF5           move.b     [A6 - 0xB], 0x1
  660. 00000780  5380                     subq.l     D0, 1
  661. label00000782:
  662. 00000782  226E 0008                movea.l    A1, [A6 + 0x8]
  663. 00000786  2251                     movea.l    A1, [A1]
  664. 00000788  7200                     moveq.l    D1, 0x00
  665. 0000078A  3229 003C                move.w     D1, [A1 + 0x3C]
  666. 0000078E  D280                     add.l      D1, D0
  667. 00000790  0C81 0000 8000           cmpi.l     D1, 0x8000
  668. 00000796  6512                     bcs        +0x14 /* 000007AA */
  669. 00000798  3F3C 002B                move.w     -[A7], 0x2B /* '+' */
  670. 0000079C  4EAD 04FA                jsr        [A5 + 0x4FA]
  671. 000007A0  08ED 0001 E862           bset.b     [A5 - 0x179E], 0x1
  672. 000007A6  6000 0044                bra        +0x46 /* 000007EC */
  673. label000007AA:
  674. 000007AA  2F08                     move.l     -[A7], A0
  675. 000007AC  2F00                     move.l     -[A7], D0
  676. 000007AE  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  677. 000007B2  A9DE                     trap       TEInsert
  678. 000007B4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  679. 000007B8  6708                     beq        +0xA /* 000007C2 */
  680. 000007BA  487A 006A                pea.l      [PC + 0x6A /* 00000826 */]
  681. 000007BE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  682. label000007C2:
  683. 000007C2  548F                     addq.l     A7, 2
  684. 000007C4  4A2E FFF5                tst.b      [A6 - 0xB]
  685. 000007C8  671A                     beq        +0x1C /* 000007E4 */
  686. 000007CA  3F3C 000D                move.w     -[A7], 0xD /* '\r' */
  687. 000007CE  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  688. 000007D2  A9DC                     trap       TEKey
  689. 000007D4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  690. 000007D8  6708                     beq        +0xA /* 000007E2 */
  691. 000007DA  487A 004A                pea.l      [PC + 0x4A /* 00000826 */]
  692. 000007DE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  693. label000007E2:
  694. 000007E2  548F                     addq.l     A7, 2
  695. label000007E4:
  696. 000007E4  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  697. 000007E8  4EBA 0160                jsr        [PC + 0x160 /* 0000094A */]
  698. label000007EC:
  699. 000007EC  3F2E FFFE                move.w     -[A7], [A6 - 0x2]
  700. 000007F0  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  701. 000007F4  4EBA 0118                jsr        [PC + 0x118 /* 0000090E */]
  702. 000007F8  206E 0008                movea.l    A0, [A6 + 0x8]
  703. 000007FC  2250                     movea.l    A1, [A0]
  704. 000007FE  2D69 0052 FFF6           move.l     [A6 - 0xA], [A1 + 0x52]
  705. 00000804  2F2E FFFA                move.l     -[A7], [A6 - 0x6]
  706. 00000808  A873                     trap       SetPort
  707. 0000080A  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  708. 0000080E  6708                     beq        +0xA /* 00000818 */
  709. 00000810  487A 0014                pea.l      [PC + 0x14 /* 00000826 */]
  710. 00000814  4EAD 0CD2                jsr        [A5 + 0xCD2]
  711. label00000818:
  712. 00000818  548F                     addq.l     A7, 2
  713. label0000081A:
  714. 0000081A  4E5E                     unlink     A6
  715. 0000081C  2F57 000C                move.l     [A7 + 0xC], [A7]
  716. 00000820  4FEF 000C                lea.l      A7, [A7 + 0xC]
  717. 00000824  4E75                     rts
  718. 00000826  8A4D                     or.w       D5, A5
  719. 00000828  5954                     subq.w     [A4], 4
  720. 0000082A  4549                     chk.w      D2, A1
  721. 0000082C  4E53 4552                link       A3, -0xFFFFBAAE
  722. 00000830  5420                     addq.b     -[A0], 2
  723. 00000832  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  724. // begin alternate branch 00000834-00000838
  725. fn00000834:
  726. 00000834  4E56 FFFC                link       A6, -0x0004
  727. // end alternate branch 00000834-00000838
  728. fn00000834: // (misaligned)
  729. 00000836  FFFC                     .extension 0xFFC // unimplemented
  730. 00000838  48E7 1000                movem.l    -[A7], D3
  731. 0000083C  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  732. 00000840  206E 0008                movea.l    A0, [A6 + 0x8]
  733. 00000844  2250                     movea.l    A1, [A0]
  734. 00000846  2029 0052                move.l     D0, [A1 + 0x52]
  735. 0000084A  2F00                     move.l     -[A7], D0
  736. 0000084C  2D40 FFFC                move.l     [A6 - 0x4], D0
  737. 00000850  4EAD 0AA2                jsr        [A5 + 0xAA2]
  738. 00000854  3D5F 000C                move.w     [A6 + 0xC], [A7]+
  739. 00000858  206E FFFC                movea.l    A0, [A6 - 0x4]
  740. 0000085C  226E 0008                movea.l    A1, [A6 + 0x8]
  741. 00000860  2251                     movea.l    A1, [A1]
  742. 00000862  7600                     moveq.l    D3, 0x00
  743. 00000864  3629 0022                move.w     D3, [A1 + 0x22]
  744. 00000868  9669 0020                sub.w      D3, [A1 + 0x20]
  745. 0000086C  1428 03A3                move.b     D2, [A0 + 0x3A3]
  746. 00000870  117C 0001 03A3           move.b     [A0 + 0x3A3], 0x1
  747. 00000876  1028 03A5                move.b     D0, [A0 + 0x3A5]
  748. 0000087A  1228 03A4                move.b     D1, [A0 + 0x3A4]
  749. 0000087E  1141 03A5                move.b     [A0 + 0x3A5], D1
  750. 00000882  08A8 0000 03A2           bclr.b     [A0 + 0x3A2], 0x0
  751. 00000888  660E                     bne        +0x10 /* 00000898 */
  752. 0000088A  4A43                     tst.w      D3
  753. 0000088C  660A                     bne        +0xC /* 00000898 */
  754. 0000088E  B300                     xor.b      D0, D1
  755. 00000890  6606                     bne        +0x8 /* 00000898 */
  756. 00000892  0802 0000                btst.b     D2, 0x0
  757. 00000896  6654                     bne        +0x56 /* 000008EC */
  758. label00000898:
  759. 00000898  3169 0020 039A           move.w     [A0 + 0x39A], [A1 + 0x20]
  760. 0000089E  4228 03A2                clr.b      [A0 + 0x3A2]
  761. 000008A2  2F29 003E                move.l     -[A7], [A1 + 0x3E]
  762. 000008A6  226E FFFC                movea.l    A1, [A6 - 0x4]
  763. 000008AA  2069 039C                movea.l    A0, [A1 + 0x39C]
  764. 000008AE  2003                     move.l     D0, D3
  765. 000008B0  A027                     trap       ReallocateHandle
  766. 000008B2  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  767. 000008B6  6708                     beq        +0xA /* 000008C0 */
  768. 000008B8  487A 0042                pea.l      [PC + 0x42 /* 000008FC */]
  769. 000008BC  4EAD 0CD2                jsr        [A5 + 0xCD2]
  770. label000008C0:
  771. 000008C0  548F                     addq.l     A7, 2
  772. 000008C2  5383                     subq.l     D3, 1
  773. 000008C4  6B26                     bmi        +0x28 /* 000008EC */
  774. 000008C6  2050                     movea.l    A0, [A0]
  775. 000008C8  226E FFFC                movea.l    A1, [A6 - 0x4]
  776. 000008CC  3029 039A                move.w     D0, [A1 + 0x39A]
  777. 000008D0  225F                     movea.l    A1, [A7]+
  778. 000008D2  2251                     movea.l    A1, [A1]
  779. 000008D4  43F1 0000                lea.l      A1, [A1 + D0.w]
  780. 000008D8  43F1 3801                lea.l      A1, [A1 + D3 + 0x1]
  781. label000008DC:
  782. 000008DC  10E1                     move.b     [A0]+, -[A1]
  783. 000008DE  51CB FFFC                dbf        D3, -0x6 /* 000008DC */
  784. 000008E2  206E FFFC                movea.l    A0, [A6 - 0x4]
  785. 000008E6  117C 0001 0391           move.b     [A0 + 0x391], 0x1
  786. label000008EC:
  787. 000008EC  4CDF 0008                movem.l    D3, [A7]+
  788. 000008F0  4E5E                     unlink     A6
  789. 000008F2  2F57 0004                move.l     [A7 + 0x4], [A7]
  790. 000008F6  4FEF 0004                lea.l      A7, [A7 + 0x4]
  791. 000008FA  4E75                     rts
  792. 000008FC  8E4D                     or.w       D7, A5
  793. 000008FE  5954                     subq.w     [A4], 4
  794. 00000900  4550                     chk.w      D2, [A0]
  795. 00000902  5245                     addq.w     D5, 1
  796. 00000904  524F                     addq.w     A7, 1
  797. 00000906  5554                     subq.w     [A4], 2
  798. 00000908  494E                     chk.w      D4, A6
  799. 0000090A  4520                     .invalid   2, -[A0] // invalid opcode 4 with b == 4
  800. 0000090C  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  801. // begin alternate branch 0000090E-00000912
  802. fn0000090E:
  803. 0000090E  4E56 FFFC                link       A6, -0x0004
  804. // end alternate branch 0000090E-00000912
  805. fn0000090E: // (misaligned)
  806. 00000910  FFFC                     .extension 0xFFC // unimplemented
  807. 00000912  206E 0008                movea.l    A0, [A6 + 0x8]
  808. 00000916  2250                     movea.l    A1, [A0]
  809. 00000918  2069 0052                movea.l    A0, [A1 + 0x52]
  810. 0000091C  2D48 FFFC                move.l     [A6 - 0x4], A0
  811. 00000920  3F2E 000C                move.w     -[A7], [A6 + 0xC]
  812. 00000924  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  813. 00000928  4EAD 0AAA                jsr        [A5 + 0xAAA]
  814. 0000092C  4E5E                     unlink     A6
  815. 0000092E  2F57 0006                move.l     [A7 + 0x6], [A7]
  816. 00000932  4FEF 0006                lea.l      A7, [A7 + 0x6]
  817. 00000936  4E75                     rts
  818. 00000938  8F4D 5954                pack       -[A7], -[A5], 0x5954
  819. 0000093C  4550                     chk.w      D2, [A0]
  820. 0000093E  4F53                     chk.w      D7, [A3]
  821. 00000940  5452                     addq.w     [A2], 2
  822. 00000942  4F55                     chk.w      D7, [A5]
  823. 00000944  5449                     addq.w     A1, 2
  824. 00000946  4E45                     trap       5
  825. 00000948  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  826. // begin alternate branch 0000094A-00000952
  827. fn0000094A:
  828. 0000094A  4E56 0000                link       A6, 0
  829. 0000094E  48E7 E0C0                movem.l    -[A7], D0,D1,D2,A0,A1
  830. // end alternate branch 0000094A-00000952
  831. fn0000094A: // (misaligned)
  832. 0000094C  0000 48E7                ori.b      D0, 0xE7
  833. 00000950  E0C0                     asr   .w   D0
  834. 00000952  206E 0008                movea.l    A0, [A6 + 0x8]
  835. 00000956  2250                     movea.l    A1, [A0]
  836. 00000958  2269 0052                movea.l    A1, [A1 + 0x52]
  837. 0000095C  08E9 0000 01BE           bset.b     [A1 + 0x1BE], 0x0
  838. 00000962  4CDF 0307                movem.l    A1,A0,D2,D1,D0, [A7]+
  839. 00000966  4E5E                     unlink     A6
  840. 00000968  2F57 0004                move.l     [A7 + 0x4], [A7]
  841. 0000096C  4FEF 0004                lea.l      A7, [A7 + 0x4]
  842. 00000970  4E75                     rts
  843. 00000972  8B53                     or.w       [A3], D5
  844. 00000974  4554                     chk.w      D2, [A4]
  845. 00000976  4449                     neg.w      A1
  846. 00000978  5254                     addq.w     [A4], 1
  847. 0000097A  5942                     subq.w     D2, 4
  848. 0000097C  4954                     chk.w      D4, [A4]
  849. 0000097E  0000                     .incomplete
  850.